<template>
    <div class="Basic">Button</div>

    <input type="text" class="Input">

</template>
<script setup>

</script>
<style lang="less" scoped>
.Basic {
    width: 100px;
    height: 35px;
    text-align: center;
    line-height: 35px;
    border-radius: 5px;
    cursor: pointer;
    background: darkcyan;

    /*
    // 基本的过渡使用方法
    */
    transition: all 0.3s;
}

/*
// 鼠标划过
*/
.Basic:hover {
    background-color: bisque;
    color: #666;
    width: 150px;
}

/*
// 激活状态
*/
.Basic:active {
    background-color: cornflowerblue;
    color: #fff;
}


.Input {
    margin-top: 20px;
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    outline: none;
    transition: all 0.3s;
}

/*
// 鼠标划过
*/
.Input:hover {
    background-color: bisque;
    color: #666;
}

/*
// 焦点状态
*/
.Input:focus {
    background-color: crimson;
    color: #fff;
}
</style>